﻿using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace MvcDDshop2.Controllers
{
    public class OrderController : Controller
    {
        //
        // GET: /Oredr/

        public ActionResult Order()
        {
            int userid =Convert.ToInt32(Session["userid"]);
            List<Order> orders = BLL.Bll.order_book(userid);
            ViewBag.orders = orders;
            return View();
        }

    }
}
